{% block home_content %}

<div class="row">  
    <div class="panel panel-default">
        <div class="panel-heading"> 
          <h3 class="panel-title">Dodaj przychód</h3>
        </div>
        <div class="panel-body">          
            {{ form_start(form, { 'action' : path("BudgetBudgetBundle_incomes_new"), 'attr' : {'class' : 'form-inline', 'id' : 'incomeForm'} }) }}
                {{ form_errors(form) }} 
                <div class="form-group">
                  {{ form_row(form.amount, { 'label' : ' ', 'attr' : {'placeholder' : 'Amount'} }) }}
                </div>
                <div class="form-group small-input-expense">
                  {{ form_row(form.date_created, { 'label' : ' ' }) }}
                </div>
                <div class="form-group">
                  {{ form_row(form.comment, { 'label' : ' ', 'attr' : {'placeholder' : 'Comment'} }) }}
                  <button type="submit" class="btn btn-primary" id='add-income'>Zapisz</button>
                  
                </div>                     
                {{ form_rest(form) }}
            {{ form_end(form) }}
        </div>
    </div>
</div>
           
<div class="row"> 
    <div class="panel panel-default">
        <div class="panel-heading"> 
          <h3 class="panel-title">Wybierz okres</h3>
        </div>
        <div class="panel-body">  
            <span class='box-date'>
                OD: 
                <span class="glyphicon glyphicon-chevron-left select-month-left" style="margin:0 5px; cursor: pointer;"></span>
                <input type="text" id="select-month-from" readonly>
                <span class="glyphicon glyphicon-chevron-right select-month-right" style="cursor: pointer;"></span>               
            </span>
            <span class='box-date'>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do: 
                <span class="glyphicon glyphicon-chevron-left select-month-left" style="margin:0 5px; cursor: pointer;"></span>
                <input type="text" id="select-month-to" readonly>
                <span class="glyphicon glyphicon-chevron-right select-month-right" style="cursor: pointer;"></span> 
            </span>
        </div>
    </div>
</div>       
    
{% endblock %}                   
            
                

